<?php


namespace app\dao\notice;


use app\dao\BaseDao;
use app\model\notice\Noticefeedback;


class NoticeFeedbackDao extends BaseDao
{
    protected function setModel(): string
    {
        return Noticefeedback::class;
    }

    //--------------------------------------------------------------api--------------------------------------------
    /*
    * 保存问题反馈
    */
    public function insertFeedback(array $where){
       return  $this->getModel()
            ->insert([
                'content'=>$where['content'],
                'user_id'=>$where['id'],
                'website_id'=>$where['website_id'],
            ]);


    }
}